package com.cx.mall.search.controller;

import com.cx.mall.common.util.ResponseVo;
import com.cx.mall.search.service.ISkuEsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/search/skuEs")
public class SkuEsController {
    @Autowired
    private ISkuEsService skuEsService;
    @GetMapping("/importAll")
    public ResponseVo importAll() {
        skuEsService.saveAll();
        return ResponseVo.success();
    }
}